
CFLAGS  = -Wall -pedantic -g
CC      = gcc
LFLAGS  = -g
LINKER  = gcc

# specific app name
APPNAME = c-oop



all: $(APPNAME)

$(APPNAME): main.o
	$(LINKER) $(LFLAGS) main.o -o $(APPNAME)

main.o: main.c
	$(CC) $(CFLAGS) -c main.c -o main.o

clean:
	rm -vf main.o $(APPNAME) $(APPNAME).exe